<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">

    <title>科目管理</title>

    <link rel="stylesheet" href="/static/css-lib/bootstrap.min.css" />
</head>
<body>
    <div class="container-fluid">
        <div class="row">
            <div class="well well-sm">
                <button type="button" class="btn btn-default">新增</button>
            </div>
        </div>

        <div class="row">
            <div class="table-responsive">
                <table class="table table-bordered table-hover table-condensed">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>年级段</th>
                            <th>年级</th>
                            <th>科目</th>
                            <th>是否启用</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <c:forEach items="${AllSubjectInfo}" var="SubjectInfo" varStatus="status">
                            <tr>
                                <td>${status.count}</td>
                                <td>${SubjectInfo.gradeSection}</td>
                                <td>${SubjectInfo.grade}</td>
                                <td>${SubjectInfo.subName}</td>
                                <c:choose>
                                    <c:when test="${SubjectInfo.isEnable == 1}">
                                        <td>是</td>
                                    </c:when>
                                    <c:otherwise>
                                        <td style="color: #f00">否</td>
                                    </c:otherwise>
                                </c:choose>
                                <%--<td>${SubjectInfo.isEnable}</td>--%>
                                <td>
                                    <button type="button" class="btn btn-default">详情</button>
                                    <button type="button" class="btn btn-primary">管理</button>
                                </td>
                            </tr>
                        </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</body>
</html>